:: It is recommended to test the script on a local machine for its purpose and effects. :: ManageEngine Desktop Central will not be responsible for any :: damage/loss to the data/setup based on the behavior of the script. :: Description: Script to Prevent using Localhost IP address for WebRTC in Edge Browser :: Script Arguments: 1 - Enabled (LocalHost IP addresses are hidden while making calls using the WebRTC protocol) :: 2 - Disabled (LocalHost IP addresses are shown while making calls using the WebRTC protocol) :: 3 - Not Configured (LocalHost IP addresses are shown while making calls using the WebRTC protocol) :: Configuration Type - COMPUTER :: =========================================================================================================================== @echo off IF NOT "%1"=="" ( set param=%1 ) else ( Echo Script argument is empty. Please read the description of the script exit 1 ) if %param%==1 ( reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\MicrosoftEdge\Main" /v "HideLocalHostIP" /t REG_DWORD /d 1 /f goto ext ) if %param%==2 ( reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\MicrosoftEdge\Main" /v "HideLocalHostIP" /t REG_DWORD /d 0 /f goto ext ) if %param%==3 ( reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\MicrosoftEdge\Main" /v "HideLocalHostIP" /f goto ext ) echo Incorrect Argument. Please check description exit 1 :ext echo Configured Successfully exit 0